package com.foo.common.base.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

//import com.mysql.jdbc.AbandonedConnectionCleanupThread;

public class FooGenericListener implements ServletContextListener {
	final static Logger logger = LoggerFactory
			.getLogger(FooGenericListener.class);

	@Override
	public void contextInitialized(ServletContextEvent sce) {

	}

	@Override
	public void contextDestroyed(ServletContextEvent sce) {
//		try {
//			logger.info("mysql:AbandonedConnectionCleanupThread clean.");
//			AbandonedConnectionCleanupThread.shutdown();
//		} catch (InterruptedException e) {
//			logger.info("mysql:shutdown exception:{}", e);
//		}
	}

}
